home *** CD-ROM | disk | FTP | other *** search
/ American History: Interactive Maps & User's Guide / American History: Interactive Maps & User's Guide.iso / pc / Pref.dxr / 00007.ls < prev    next >
Encoding:
Text File  |  2000-01-25  |  692 b   |  26 lines

  1. on mouseDown
  2.   global gLanguagePref, gSystemVolumeLevel, gVdPort, gVdPlayer
  3.   set buttonClicked to the clickOn
  4.   repeat while the mouseDown = 1
  5.   end repeat
  6.   case buttonClicked of
  7.     11:
  8.       if gSystemVolumeLevel > 0 then
  9.         exit
  10.       else
  11.         set the locV of sprite 7 to 102
  12.         set gSystemVolumeLevel to integer(the soundLevel * 36.42000000000000171)
  13.         set the locH of sprite 8 to (gSystemVolumeLevel / 255.0 * 210.0) + 96.0
  14.       end if
  15.     12:
  16.       if gSystemVolumeLevel = 0 then
  17.         exit
  18.       else
  19.         set the locV of sprite 7 to 124
  20.         set gSystemVolumeLevel to 0
  21.         set the locH of sprite 8 to 96
  22.       end if
  23.   end case
  24.   updateStage()
  25. end
  26.